package org.hxd.admin.order.service;

import org.hxd.admin.order.dao.AdminOrderDao;
import org.hxd.pojo.Orderitem;
import org.hxd.pojo.Orders;
import org.hxd.utils.PageModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AdminOrderServiceImpl implements AdminOrderService {
    @Resource
    AdminOrderDao adminOrderDao;

    @Override
    public int findOrderTjcount(Orders orders) {
        return adminOrderDao.findOrderTjcount(orders);
    }

    @Override
    public List<Orders> findOrderTj(Orders orders, PageModel pageModel) {
        return adminOrderDao.findOrderTj(orders,pageModel);
    }

    @Override
    public int deleteOrderByib(String id) {
        return adminOrderDao.deleteOrderByib(id);
    }

    @Override
    public Orders findOrderById(String id) {
        return adminOrderDao.findOrderById(id);
    }

    @Override
    public List<Orderitem> findOrderitemById(String id) {
        return adminOrderDao.findOrderitemById(id);
    }
}
